package com.example.springboot0507.fastjson;

import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author 王博
 * @DateTime 2025-07-22 19:13
 */
@Data
public class Person {
    private Long id;
    private String name;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date joinDate;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birth;
    private boolean isFine;
}
